/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dahg.project.istu.controller.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author dahg
 */
@Entity
@Table(name = "inventario_fisico")
public class InventarioFisico {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    @ManyToOne
    @JoinColumn(name = "fk_producto")
    private Producto producto;
    
    @ManyToOne
    @JoinColumn(name = "fk_bodega")    
    private Bodega bodega;
    
    private Integer total;
    private Integer inservible;
    private Integer obsoleto;
    private Integer vencido;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Producto getProducto() {
        return producto;
    }

    public void setProducto(Producto producto) {
        this.producto = producto;
    }

    public Bodega getBodega() {
        return bodega;
    }

    public void setBodega(Bodega bodega) {
        this.bodega = bodega;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getInservible() {
        return inservible;
    }

    public void setInservible(Integer inservible) {
        this.inservible = inservible;
    }

    public Integer getObsoleto() {
        return obsoleto;
    }

    public void setObsoleto(Integer obsoleto) {
        this.obsoleto = obsoleto;
    }

    public Integer getVencido() {
        return vencido;
    }

    public void setVencido(Integer vencido) {
        this.vencido = vencido;
    }
    
    
    
}
